<extend name="Public:base" />


<block name="head">
<script>
function del(id){
	if(confirm('真的要删除吗？')){
		$('#' + id).remove();
	}
}
</script>
</block>


<block name="main">

<!-- <img src="__PUBLIC__/img/account/top.jpg" width="100%"> -->

<br><br>

<div class="container">

	<table class="table">
		<thead>
			<tr>
				<td width="18%">姓名</td>
				<td width="25%">年级</td>
				<td>联系电话</td>
				<td width="20%">微信关联</td>
				<td width="10%"></td>
			</tr>
		</thead>
		<tbody>
			<tr id="1">
				<td onclick="location.href='/main'">张志繁</td>
				<td onclick="location.href='/main'">ULC G11</td>
				<td onclick="location.href='/main'">13711111111</td>
				<td onclick="location.href='/main'">3</td>
				<td>
					<button class="close" onclick="del(1)"><span
					class="glyphicon glyphicon-remove"></span></button>
				</td>
			</tr>
			<tr id="2">
				<td onclick="location.href='/main'">张志荣</td>
				<td onclick="location.href='/main'">ULC G9</td>
				<td onclick="location.href='/main'">13722222222</td>
				<td onclick="location.href='/main'">3</td>
				<td>
					<button class="close" onclick="del(2)"><span
					class="glyphicon glyphicon-remove"></span></button>
				</td>
			</tr>
			<tr id="3">
				<td onclick="location.href='/main'">张志富</td>
				<td onclick="location.href='/main'">NCPA一年级</td>
				<td onclick="location.href='/main'">13733333333</td>
				<td onclick="location.href='/main'">2</td>
				<td onclick="location.href='/main'">
					<button class="close" onclick="del(3)"><span
					class="glyphicon glyphicon-remove"></span></button>
				</td>
			</tr>
			<?php if($_GET['act'] == 'add_finish'):?>
			<tr id="4">
				<td onclick="location.href='/main'">张志强</td>
				<td onclick="location.href='/main'">NCPA二年级</td>
				<td onclick="location.href='/main'">13744444444</td>
				<td onclick="location.href='/main'">1</td>
				<td>
					<button class="close" onclick="del(4)"><span
					class="glyphicon glyphicon-remove"></span></button>
				</td>
			</tr>
			<?php endif;?>
		</tbody>
	</table>

	<div class="navbar-fixed-bottom">
		<button class="btn btn-block btn-primary"
		onclick="location.href='__URL__/add'">关联学生</button>
	</div>

	<div class="alert alert-warning alert-dismissible fade in" role="alert">
		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		本帐户已关联三个学生，可以新建关注和不在关注<br>
		例如家长有四个小朋友，就可以一一关注他们的动态
	</div>


</div>

</block>
